package com.hj.collegetravel.models;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class CPicture implements Serializable {
    private Integer pId;

    private Integer pFlag;

    private Integer pVsid;

    private String pFilename;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date pTime;

    private String alt;//图片描述

    private static final long serialVersionUID = 1L;

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public Integer getpFlag() {
        return pFlag;
    }

    public void setpFlag(Integer pFlag) {
        this.pFlag = pFlag;
    }

    public Integer getpVsid() {
        return pVsid;
    }

    public void setpVsid(Integer pVsid) {
        this.pVsid = pVsid;
    }

    public String getpFilename() {
        return pFilename;
    }

    public void setpFilename(String pFilename) {
        this.pFilename = pFilename == null ? null : pFilename.trim();
    }

    public Date getpTime() {
        return pTime;
    }

    public void setpTime(Date pTime) {
        this.pTime = pTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pId=").append(pId);
        sb.append(", pFlag=").append(pFlag);
        sb.append(", pVsid=").append(pVsid);
        sb.append(", pFilename=").append(pFilename);
        sb.append(", pTime=").append(pTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public String getAlt() {
        return alt;
    }

    public void setAlt(String alt) {
        this.alt = alt;
    }
}